const WebpackAliyunOss = require('webpack-aliyun-oss');
const oss = require("./oss");
// 推送到oss上

new WebpackAliyunOss({
    from: ["./dist/**", "!./dist/*.html"], //排除html文件
    dist: `front_project/app_teacher_admin`,
    region: oss.region,
    accessKeyId: oss.accessKeyId,
    accessKeySecret: oss.accessKeySecret,
    bucket: oss.bucket,
    setHeaders(filePath) {
      // 定义当前文件header，可选
      return {
        "Cache-Control": "max-age=31536000",
      };
    },
  }).apply();

